package com.rockwell.sniffyhunter.utils;

import com.rockwell.sniffyhunter.model.MoveBackToSniff;

public enum MoveBackToSniffState implements IStateMachine {
	START {
		@Override
		public
		IStateMachine doAction(IStateObject stateObject) {
			return MOVE_BACK;
		}
	},
	MOVE_BACK {
		@Override
		public
		IStateMachine doAction(IStateObject stateObject) {
			return ((MoveBackToSniff)stateObject).moveBack();
		}
	},
	TURN_BACK {
		@Override
		public
		IStateMachine doAction(IStateObject stateObject) {
			return ((MoveBackToSniff)stateObject).turnBack();
		}
	},
	DONE {
		@Override
		public
		IStateMachine doAction(IStateObject stateObject) {
			return START;
		}
	};
}
